import Layout from "@/layout";

const bulkRouter = {
  path: "/bulk/order",
  component: Layout,
  redirect: "noRedirect",
  name: "bulk",
  hidden: false,
  alwaysShow: true,
  meta: {
    title: "批发管理",
    abbre: "批发",
    icon: "left_menu_bulk",
    navigation: "/bulk",
    id: "407"
  },
  children: [
    /* 批发订单 */
    {
      path: "/bulk/order",
      component: () => import("@/views/bulk/bulkOrder"),
      name: "bulk_order",
      hidden: false,
      meta: {
        title: "批发订单",
        noCache: true,
        navigation: "/bulk/order",
        icon: "menu_big_data"
      }
    },
    {
      path: "/bulk/order/see/:id",
      component: () => import("@/views/bulk/bulkOrder_see"),
      hidden: true,
      name: "bulk_order_see",
      meta: {
        title: "查看订单",
        bread: "批发订单,查看订单",
        noCache: true,
        navigation: "/bulk/order",
        icon: "menu_big_data"
      }
    },
    {
      path: "/bulk/order/record/:id",
      component: () => import("@/views/bulk/bulkOrder_record"),
      hidden: true,
      name: "bulk_order_record",
      meta: {
        title: "收货",
        bread: "批发订单,收货",
        noCache: true,
        navigation: "/bulk/order",
        icon: "menu_big_data"
      }
    },
    {
      path: "/bulk/order/add",
      component: () => import("@/views/bulk/bulkOrder_add"),
      hidden: true,
      name: "bulk_order_add",
      meta: {
        title: "我要批发",
        bread: "我要批发",
        noCache: true,
        navigation: "/bulk/order",
        icon: "menu_big_data"
      }
    },
    {
      path: "/bulk/shopcart",
      component: () => import("@/views/bulk/bulkShopCart"),
      hidden: true,
      name: "bulk_shopcart",
      meta: {
        title: "购物车",
        bread: "我要批发,购物车",
        noCache: true,
        navigation: "/bulk/order/add",
        icon: "menu_big_data"
      }
    },
    {
      path: "/bulk/shopcart/commit",
      component: () => import("@/views/bulk/bulkShopCart_commit"),
      hidden: true,
      name: "bulk_shopcart_commit",
      meta: {
        title: "确认提交",
        bread: "购物车,确认提交",
        noCache: true,
        navigation: "/bulk/shopcart",
        icon: "menu_big_data"
      }
    },
    {
      path: "/bulk/shopcart/pay",
      component: () => import("@/views/bulk/bulkShopCart_pay"),
      hidden: true,
      name: "bulk_shopcart_pay",
      meta: {
        title: "支付",
        bread: "购物车,支付",
        noCache: true,
        navigation: "/bulk/shopcart",
        icon: "menu_big_data"
      }
    },
    /* 批发账单*/
    {
      path: "/bulk/account",
      component: () => import("@/views/bulk/bulkAccount"),
      name: "bulk_account",
      hidden: false,
      meta: {
        title: "批发账单",
        noCache: false,
        navigation: "/bulk/account",
        icon: "menu_big_data"
      }
    },
    {
      path: "/bulk/account/see/:id",
      component: () => import("@/views/bulk/bulkAccount_see"),
      hidden: true,
      name: "bulk_account_see",
      meta: {
        title: "查看订单",
        bread: "批发账单,查看账单",
        noCache: true,
        navigation: "/bulk/account",
        icon: "menu_big_data"
      }
    },
    /* 结算单 */
    {
      path: "/bulk/final",
      component: () => import("@/views/bulk/bulkFinal"),
      name: "bulk_final",
      hidden: false,
      meta: {
        title: "结算单",
        noCache: false,
        navigation: "/bulk/final",
        icon: "menu_big_data"
      }
    },
    {
      path: "/bulk/balance",
      component: () => import("@/views/bulk/bulkBalance"),
      name: "bulk_balance",
      hidden: false,
      meta: {
        title: "批发差额",
        noCache: true,
        navigation: "/bulk/balance",
        icon: "menu_big_data"
      }
    },
    {
      path: "/bulk/balance/flowing",
      component: () => import("@/views/bulk/bulkBalance_flowing"),
      name: "bulk_balance_flowing",
      hidden: true,
      meta: {
        title: "差额流水",
        bread: "批发差额,差额流水",
        noCache: true,
        navigation: "/bulk/balance",
        icon: "menu_big_data"
      }
    }
  ]
};

export default bulkRouter;
